package daydayup.gateway.api.redis;


import javax.annotation.Resource;

import org.junit.Test;
import org.springframework.data.redis.core.RedisTemplate;

import daydayup.gateway.api.base.test.BaseJunitTest;

public class RedisPublisher extends BaseJunitTest {

	@Resource
	RedisTemplate redisTemplate;
	
	@Test
	public void publish() {
		redisTemplate.convertAndSend("topic.channel", "hello my world!");
		System.out.println("发送成功!");
	}
}
